<template>
  <div class="outer">
    <h1>Header组件</h1>
    <p>父组件给我的count是:{{ count }}</p>
  </div>
</template>

<script>
export default {
  name: "Header",
  props: ["a", "count"],
  mounted() {
    console.log(this, "Header实例");
  },
};
</script>

<style scoped>
.outer {
  background: yellowgreen;
}
</style>